<?php
class Extension_Rest_Class_Test
{
    /**
     * docblocks required !
     *
     * @param int $id
     * @return string
     */
    public function getName($id) {
        if ($id == 1) {
            return array('name' => 'name 1 returned.');
        } else {
            return array('name' => '$id != 1 !!');
        }
    }

}